//
//  ExtHeaderRefreash.swift
//  koolcar
//
//  Created by kuaimaxiansheng on 2022/9/30.
//

import UIKit
import MJRefresh

extension MJRefreshNormalHeader {
    open override func prepare() {
        super.prepare()
        self.stateLabel.isHidden = true
        self.activityIndicatorViewStyle = .gray
//        self.setTitle(MMLocalizedString("MJRefreshHeaderIdleText", comment: "下拉可以刷新"), for: .idle)
//        self.setTitle(MMLocalizedString("MJRefreshHeaderPullingText", comment: "松开立即刷新"), for: .pulling)
//        self.setTitle(MMLocalizedString("MJRefreshHeaderRefreshingText", comment: "正在刷新数据中..."), for: .refreshing)
    }
 
    
}


extension MJRefreshBackNormalFooter {
    open override func prepare() {
        super.prepare()
        self.stateLabel.isHidden = true
        self.activityIndicatorViewStyle = .gray
//        self.setTitle(MMLocalizedString("MJRefreshBackFooterIdleText", comment: "上拉可以加载更多"), for: .idle)
//        self.setTitle(MMLocalizedString("MJRefreshBackFooterPullingText", comment: "松开立即加载更多"), for: .pulling)
//        self.setTitle(MMLocalizedString("MJRefreshBackFooterRefreshingText", comment: "正在加载更多的数据..."), for: .refreshing)
//        self.setTitle(MMLocalizedString("MJRefreshBackFooterNoMoreDataText", comment: "已经全部加载完毕"), for: .noMoreData)
    }
}
